<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加角色页面</title>
</head>
<%
	String path = request.getContextPath();
	request.setAttribute("path", request.getContextPath());
	request.setAttribute("jsPath", path+"/js");
%>

<style type="text/css">
	#conten{
	     position: absolute;
         left: 400px;
	}
	a {text-decoration: none;}
	#yeshu {
		margin-left: 300px;
		margin-top: 35px;
	}
	 
	 #deleteFlag{
           width: 100px;}
#update {
	width: 80px;
	height: 30px;
	border: 1px solid black;
	text-align: center;
	line-height: 30px;
	position: absolute;
	left: 80px;
	top: 125px;
	background-color: #0072CC;
	color: white;
}

#Reset {
	width: 80px;
	height: 30px;
	border: 1px solid black;
	text-align: center;
	line-height: 30px;
	position: absolute;
	left: 200px;
	top: 125px;
	background-color: #0072CC;
	color: white;
}     
</style>
<script type="text/javascript" src="${jsPath}/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
$(function(){
	var msg = $("#msg").html();
	if(msg != null){
		alert(msg);
	}
});
	
	function search(){
		$("#pageIndex").val(1);
		$('#searchForm').submit();
	}

	function goPage(pageIndex){
		$("#pageIndex").val(pageIndex);
		$('#searchForm').submit();
	}
</script>
<body>
	<c:if test="${not empty msg}"><p style="display:none" id="msg">${msg}</p></c:if>
<div id="conten">
	<form action="${path}/sysRole/add" method="post">
		<table>
			<tr>
				<th colspan="2">添加系统角色信息</th>
			</tr>
			<tr>
				<td>名称：</td>
				<td><input type="text" name="name" required/></td>
			</tr>
			<tr>
				<td>是否为角色管理：</td>
				 	<td id="managerRoleFlag"><select name="managerRoleFlag" > 
						     <option value="1">是</option> 
							 <option value="2">否</option> 
				    </select> </td>
			</tr>
			<tr>
				<td></td>
				<td style="text-align:left;">
					<input type="reset" value="重置" id="Reset"/>
					<input type="submit" value="添加" id="update"/>
				</td>
			</tr>
		</table>
	</form>
</div>	
</body>
</html>